<script>
import { setStorage, removeStorage } from "./utils/storage";
// 开发者的appId和密钥，密钥动态生成
const appId = "wx50d4acb21d3ab753";
const appKey = "";

export default {
  created() {
    wx.clearStorage();
  },
  beforeDestroy() {
    // 组件销毁前移除openid数据
    removeStorage();
  }
};
</script>
